<form action="{:request()->url()}" autocomplete="off" class="layui-form layui-card" data-auto="true" method="post">
    <div class="layui-card-body padding-left-40">

        <label class="layui-form-item relative block">
            <span class="color-green font-w7">活动海报:</span>
        </label>
        <div class="layui-inline" style="margin-left: 15px">
            <input name="img" type="hidden" value="{$vo.img|default=''}">
            <script>$('[name="img"]').uploadOneImage();</script>
        </div>

        <label class="layui-form-item relative block">
            <span class="color-green font-w7">链接</span>
            <span class="color-desc margin-left-5">Notify ImgUrl</span>
            <input class="layui-input" name="imgurl" placeholder="请输入链接"  value='{$vo.imgurl|default=""}'>
        </label>


        <label class="layui-form-item relative block">
            <span class="color-green font-w7">标题</span>
            <span class="color-desc margin-left-5">Notify Title</span>
            <input class="layui-input" name="title" placeholder="请输入标题" required value='{$vo.title|default=""}'>
        </label>

        <label class="layui-form-item relative block">
            <span class="color-green font-w7">排序</span>
            <span class="color-desc margin-left-5">(数字越大,排序越前)Notify Sort</span>
            <input class="layui-input" name="sort" placeholder="请输入排序" required value='{$vo.sort|default=""}'>
        </label>

        <div class="hr-line-dashed"></div>
        {if isset($vo.id)}<input name='id' type='hidden' value='{$vo.id}'>{/if}
        {if isset($vo.number)}<input name='old_number' type='hidden' value='{$vo.number}'>{/if}

        <div class="layui-form-item text-center">
            <button class="layui-btn" type='submit'>保存数据</button>
            <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>取消编辑</button>
        </div>
    </div>

    <script>form.render()</script>
</form>
